feat: void element tags in helpers are selectable between > and /> #6717
feat: void element tags in helpers are selectable between > and /> #6717ddevsr wants to merge 3 commits intocodeigniter4:4.3from ddevsr:selfclosing-html
> and /> #6717Conversation
|
Is this a breaking change or not? |
For XHTML is breaking change, but analytics say See https://w3techs.com/technologies/history_overview/markup_language/ms/y |
|
If only, the list here can be used for the default form_helper. CodeIgniter4/app/Config/DocTypes.php Lines 12 to 32 in 77e5dcf |
|
|
To begin with, HTML5 is already obsolete. |
For other HTML5, |
|
I already added dynamic appear HTML Tag with setting property |
form_helper> and />
|
Btw, this also needs the same touch CodeIgniter4/system/Common.php Line 279 in 1fe58f0 CodeIgniter4/system/Common.php Line 289 in 1fe58f0 |
Thankyou for suggest |
| * | ||
| * @internal | ||
| */ | ||
| function solidus(): string |
There was a problem hiding this comment.
How about renaming to _solidus()?
HTML helper has _get_uri().
There was a problem hiding this comment.
I propose to rename it to _solidus().
- This is not a normal helper function.
- Now it does output a space and a solidus or empty string.
|
This PR changes helpers outputs by default: <input type="checkbox" name="foo" value="bar" />↓ <input type="checkbox" name="foo" value="bar">Please add it to
|
kenjis
left a comment
There was a problem hiding this comment.
Please fix the output when using HTML5:
<input type="hidden" name="foo" value="bar" >
↓
<input type="hidden" name="foo" value="bar">
|
You used |
refactor: make it valid schema html refactor: make it valid schema HTML refactor: make it valid schema HTML
Update system/Common.php Co-authored-by: kenjis <kenji.uui@gmail.com> refactor: make it valid HTML in form_helper and html_helper
paulbalandan
left a comment
There was a problem hiding this comment.
Can you git rebase -i and combine similar commits together? It would be hard later on debugging where to check on this git history.
| if (! function_exists('solidus')) { | ||
| /** | ||
| * Generates the solidus character (`/`) depending on the HTML5 compatibility flag in `Config\DocTypes` | ||
| * | ||
| * @internal | ||
| */ | ||
| function solidus(): string |
There was a problem hiding this comment.
| if (! function_exists('solidus')) { | |
| /** | |
| * Generates the solidus character (`/`) depending on the HTML5 compatibility flag in `Config\DocTypes` | |
| * | |
| * @internal | |
| */ | |
| function solidus(): string | |
| if (! function_exists('_solidus')) { | |
| /** | |
| * Generates the solidus character (`/`) depending on the HTML5 compatibility flag in `Config\DocTypes` | |
| * | |
| * @internal | |
| */ | |
| function _solidus(): string |
Fail rebase, how to back to commit 17d66d62cf57a46851aff15963904484c91b222e? |
|
I will going with new PR |
Description
Fixes #6649
Supersedes and closes #6658
Checklist: